//
//  PhotoInfo.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-7-3.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define PERMS_PUBLIC 1
#define PERMS_FRIEND 2
#define PERMS_FAMILY 4


@interface PhotoInfo : NSObject {
	/**
	 * 图标nsid
	 */
	NSString *photoID;
	/**
	 * 用户ID
	 */
	NSString *ownerID;
	/**
	 * 密钥
	 */
	NSString *secret;	
	/**
	 * 服务器ID
	 */
	NSString *serverID;
	/**
	 * farm id
	 */
	NSString *farmID;
	/**
	 * 图片标题
	 */
	NSString *title;
//	/**
//	 * 图像描述
//	 */
//	NSString *description;
	/**
	 * 权限，isPublic isFriend isfamily
	 */
	NSInteger perms;
	
	NSString *url_sq;
}

@property(nonatomic, retain) NSString *photoID;

@property(nonatomic, retain) NSString *ownerID;

@property(nonatomic, retain) NSString *secret;

@property(nonatomic, retain) NSString *serverID;

@property(nonatomic, retain) NSString *farmID;

@property(nonatomic, retain) NSString *title;

@property(nonatomic, retain) NSString *url_sq;

//@property(nonatomic, retain) NSString *description;

/**
 * 初始化，默认设置 ""
 */
-(id)init;

/**
 * 根据传递过来的属性进行设置
 */
-(void)setProperties:(NSDictionary *)properties;

@end
